<ui:composition  xmlns:h="http://java.sun.com/jsf/html"
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:p="http://primefaces.org/ui" >

    <h:form>
        <p:menu style="width:200px;" >  

            <p:submenu label="Imóvel">  
                <p:menuitem value="Cadastrar" actionListener="#{managerImovel.criarImovel()}"
                             update="@form" icon="ui-icon-plusthick"/>  
                <p:menuitem value="Pesquisar" 
                            actionListener="#{managerImovel.pesquisarImovel()}" icon="ui-icon-search"/> 
            </p:submenu>
            <p:submenu label="Geolocalização">
            <p:menuitem value="Conflito"  
                            actionListener="#{managerIndex.redirect('compCoord.xhtml')}" 
                            update="@form" icon="ui-icon-closethick"/>   
            <p:menuitem value="Por Município"  
                            actionListener="#{managerIndex.redirect('stateCoord.xhtml')}" 
                            update="@form" icon="ui-icon-closethick"/>   
            <p:menuitem value="Plotagem"  
                            actionListener="#{managerIndex.redirect('verStateCoord.xhtml')}" 
                            update="@form" icon="ui-icon-closethick"/>   
            <p:menuitem value="Interpi"  
                            actionListener="#{managerIndex.redirect('criarAreaInterpi.xhtml')}" 
                            update="@form" icon="ui-icon-closethick"/>   
            </p:submenu>
            <p:submenu label="Certidão">  
                    <p:menuitem value="Positiva" 
                                actionListener="#{managerImovel.redirect('certidaoPositiva.xhtml')}"
                                icon="ui-icon-circle-plus"/>
                    <p:menuitem value="Negativa" 
                                actionListener="#{managerImovel.redirect('certidaoNegativa.xhtml')}"
                                icon="ui-icon-circle-minus"/>
            </p:submenu>
            
        </p:menu>  

    </h:form>

</ui:composition>
